﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MLevel.API.Samples.SharePointWebPart.Models
{
    public class MissionLeaderboardModel
    {
        private List<PlayerData> playersData;

        public string GroupID { get; set; }

        public string ID { get; set; }

        public string Name { get; set; }

        public int? IndexOfFirstPlayer { get; set; }

        public int? TotalPlayers { get; set; }

        public int? PlayersDisplayed { get; set; }

        public int? MaxScore { get; set; }

        public int? MaxStars { get; set; }

        public string GroupName { get; set; }

        public List<PlayerData> PlayersData
        {
            get
            {
                return this.playersData ?? (this.playersData = new List<PlayerData>());
            }
            set
            {
                this.playersData = value;
            }
        }

        public PlayerData CurrentPlayer { get; set; }

        public int? CurrentItemCount { get; set; }

        public int? ItemsPerPage { get; set; }

        public int? StartIndex { get; set; }

        public string NextLink { get; set; }

        public string PreviousLink { get; set; }

        public string PagingLinkTemplate { get; set; }
    } 
}
